	
	<!-- 当前所在位置 START -->
	{include file="_url.here.tpl"}
	<!-- 当前所在位置 END -->

	<!-- 主体区 -->
	<div class="area">

		<!-- 主体左边区 -->
		<div class="aleft">

			<!-- 所有商品分类 START -->
			{include file="lbi/left_category_menu.tpl"}
			<!-- 所有商品分类 END -->

			<div class="space20"></div>

			<!-- 优惠活动 START -->
			<div class="sl_t_block bdcolor-green preferential">
				<div class="tt">
					<em class="more"><a href="{$linkmore.sales}">+more</a></em><h2 class="color-green">优惠活动</h2>
				</div>
				<div class="main-block">
					<a href="{$indexSecondCoupon.url}"><img src="{$_s.up_dir}thumb/{$indexSecondCoupon.path}" /></a>
					<div class="main-content padding10">{$indexSecondCoupon.brief}...<a href="{$indexSecondCoupon.url}" class="color-red">查看详情&gt;&gt;&gt;</a></div>

				</div>
			</div>
			<!-- 优惠活动 END -->

			<div class="space20"></div>

			<!-- 销售排行 START -->
			<div class="sl_t_block bdcolor-orange">
				<div class="tt">
					<em class="more"><a {$linkmore.salesrank}>+more</a></em><h2 class="color-orange">销售排行</h2>
				</div>
				<div class="main-block pattern_line_right sales_ranking sales_ranking_other">

					{counter start=0 skip=1 print=false assign=index}
					{foreach from=$goodslist_salesrank item=goods}
					{counter}
					<dl {if $index == 1}class="first"{/if}>
						<dt><i>{$index}</i></dt>
						<dd><a href="{$goods.url}"><img src="{$_s.up_dir}thumb/92_70/{$goods.cover}" /></a></dd>
						<dd><div><a href="{$goods.url}" title="{$goods.name}" class="poshytip">{$goods.name}</a></div>
							<div><b>￥{$goods.price}</b></div>
							<div><img src="{$_s.theme_dir}images/shopping_cart.png" width="16" height="16" /><b>{$goods.sales}</b>笔</div></dd>
							<div class="space10"></div>
					</dl>
					{/foreach}

				</div>
			</div>
			<!-- 销售排行 END -->

		</div>

		<!-- 主体右边区 START -->
		<div class="aright">
			<form action="{$goods_serach_url}" method="get" id="form_search">
				<input type="hidden" name="mdl" value="goods" />
				<input type="hidden" name="catid" value="{$get.catid}" />
				<input type="hidden" name="childs" value="{$get.childs}" />

				<!-- 商品筛选 START -->
				<div class="sl_t_block bdcolor-red">
					<div class="tt">
						<em><a href="#" id="btn_reset_search_condition">重置筛选条件</a></em><h2 class="color-red">商品筛选</h2>
					</div>
					<div class="main-block pattern_line_right goods_select clearfix">
						{if $brand_list}
						<dl class="clearfix">
							<dt>品牌：</dt>
							<dd><span>不限</span>
								{foreach from=$brand_list item=row}
								<span {if $row.checked == '1'}class="checked"{/if}><input type="checkbox" name="brand[]" value="{$row.id}"  {if $row.checked == '1'}checked{/if} class="chbox" />{$row.name}<i {if $row.checked != '1'}class="hide"{/if}><img src="{$_s.theme_dir}images/file_del.gif"></i></span>
								{/foreach}</dd>
							<div class="clear"></div>
						</dl>
						<div class="clear"></div>
						{/if}
						{foreach from=$spec_list item=row}
						<dl class="clearfix">
							<dt>{$row.name}：</dt>
							<dd><span>不限</span>
								{foreach from=$row.value key=key item=item}
								<span {if $item.checked == '1'}class="checked"{/if}><label>{if $row.multi == '1'}<input type="checkbox" name="prototype[{$row.id}][]" value="{$key}" {if $item.checked == '1'}checked{/if} class="chbox" />{else}<input type="radio" name="prototype[{$row.id}]" value="{$key}" {if $item.checked == '1'}checked{/if} />{/if}{$item.value}</label><i {if $item.checked != '1'}class="hide"{/if}><img src="{$_s.theme_dir}images/file_del.gif"></i></span>
								{/foreach}</dd>
							<div class="clear"></div>
						</dl>
						<div class="clear"></div>
						{/foreach}

						{if $range_list}
						<dl class="clearfix">
							<dt>价格区间：</dt>
							<dd><span>不限</span>
								{foreach from=$range_list item=row}
								<span {if $row.checked == '1'}class="checked"{/if}><label><input type="radio" name="range" value="{$row.item}" {if $item.checked == '1'}checked{/if} />{$row.item}</label><i {if $row.checked != '1'}class="hide"{/if}><img src="{$_s.theme_dir}images/file_del.gif"></i></span>
								{/foreach}</dd>
							<div class="clear"></div>
						</dl>
						<div class="clear"></div>
						{/if}

						<div class="cmd">
							<input type="submit" value="确定" class="button" />
						</div>
					</div>
				</div>
				<!-- 商品筛选 END -->

				<div class="space20"></div>

				<!-- 商品列表 START -->
				<div class="dl_t_block bdcolor-blue">
					<div class="tt">
						<div class="line color-blue">
							<div class="left">
								关键字：<input type="text" name="keyword" value="{$get.keyword}" class="input" style="width:120px;" />
								&nbsp;
								<button type="submit" name="orderby_price" value="asc" class="btn-asc-{if $get.orderby_price != ''}blue{else}gray{/if}">价格</button>
								<button type="submit" name="orderby_sales" value="desc" class="btn-desc-{if $get.orderby_sales != ''}blue{else}gray{/if}">销量</button>
								<button type="submit" name="orderby_comments" value="desc" class="btn-desc-{if $get.orderby_comments != ''}blue{else}gray{/if}">评价</button>								
								&nbsp;
								价格范围：<input type="text" name="price_min" value="{$get.price_min}" class="input" style="width:40px;" />&nbsp;-&nbsp;<input type="text" name="price_max" value="{$get.price_max}" class="input" style="width:40px;" />
								&nbsp;
								<label><input type="radio" name="recommend" value="new" {if $get.recommend == 'new'}checked{/if} />新品</label>
								<label><input type="radio" name="recommend" value="hot" {if $get.recommend == 'hot'}checked{/if} />热销</label>
								<label><input type="radio" name="recommend" value="good" {if $get.recommend == 'good'}checked{/if} />精品</label>
							</div>
							<em><input type="submit" value="确定" class="button" /></em>
						</div>
						<div class="clear"></div>
						<div class="line color-blue">

							<div class="left">
								{include file="_pagelist_info.tpl"}
							</div>

							<!-- 页码 START -->
							<em>
								{if $_sysvars.url_rewrite == 'html' || $_sysvars.url_rewrite == 'rewrite'}
									{if $get.s == '1'}
										{include file="_pagelist_single.tpl"}
									{else}
										{include file="_pagelist_html_single.tpl"}
									{/if}
								{else}
									{include file="_pagelist_single.tpl"}
								{/if}	
							</em>
							<!-- 页码 END -->

						</div>

					</div>

					<!-- 商品列表 START -->
					<div class="main-block goods-list">
						{counter start=0 skip=1 print=false assign=index}
						{foreach from=$goods_list item=goods}
						{counter}
						<div class="goods_item{if $index < 5} first-line{/if}{if $index % 4 == 1} first-col{/if}">
							{if $goods.recommend != ''}
							<div class="tag_{$goods.recommend}"><!-- 新 --></div>
							{/if}
							{if $goods.label !=	''}
							{if $goods.labeltype == '2'}
							<div class="tag_desc">{$goods.label}折</div>						
							{elseif $goods.labeltype == '1'}
							<div class="tag_desc">直降{$goods.label}元</div>
							{else}
							<div class="tag_desc">{$goods.label}</div>
							{/if}
							{/if}
							<div class="image tview">
								<div class="tcell">
									<div class="titem">
										<a href="{$goods.url}">
											<img src="{$_s.up_dir}thumb/200_180/{$goods.cover}" alt="{$goods.name}-{$goods.category}" />
										</a>
									</div>
								</div>
							</div>
							<a href="{$goods.url}" title="{$goods.name}" class="title poshytip">{$goods.name}</a>
							<div class="price"><b>￥{$goods.price}</b></div>
						</div>
						{foreachelse}
						<div class="sysinfo">
							<div class="bg_right">
								<div class="info-block">
									<h2>没有找到符合条件的商品！</h2>
									<div class="space20"></div>
									<div class="detail">请适当调整筛选条件再试，祝您好运^_^<br />
										特别说明：<br />
										1、品牌与价格是“与”的关系，即同时满足才成立；其他是“或”的关系，即任何一个满足都成立。<br />
										2、下面的【价格范围】的优先权高于上面的【价格区间】，即给了【价格范围】，则【价格区间】无效。</div>
								</div>
							</div>
						</div>
						{/foreach}

						<div class="clear"></div>

					</div>
					<!-- 商品列表 END -->

				</div>
				<!-- 商品列表 END -->

			</form>
			
			<div class="space10"></div>

			<!-- 页码 START -->
			{if $_sysvars.url_rewrite == 'html' || $_sysvars.url_rewrite == 'rewrite'}
				{if $get.s == '1'}
					{include file="_pagelist.tpl"}
				{else}
					{include file="_pagelist_html.tpl"}
				{/if}
			{else}
				{include file="_pagelist.tpl"}
			{/if}
			<!-- 页码 END -->
			
		</div>
		<!-- 主体右边区 END -->

	</div>

	<script type="text/javascript" language="JavaScript" charset="utf-8">
	<!--
		{literal}
		jQuery(function($){
			if($('div.goods_select').find('dl').size() == 0){
				$('div.goods_select').parent().next().remove().end().remove();
			}
			$('div.goods_select > dl > dd > span').click(function(){
				var input = $(this).find('input');
				if(input.attr('type') == 'radio'){
					input.attr('checked', true);
					$(this).addClass('checked')
						.siblings('span').removeClass('checked')
						.find('i').hide();
					$(this).find('i').show();
				}else{
					var cls = $.trim($(this).attr('class'));
					if(cls == 'checked'){
						input.attr('checked', false);
						$(this).removeClass('checked').find('i').hide();
					}else{
						input.attr('checked', true);
						$(this).addClass('checked').find('i').show();
					}
				}

			});

			$('#btn_reset_search_condition').click(function(){
				$('div.goods_select > dl > dd > span').each(function(){
					$(this).removeClass('checked')
						.find('i').hide().end()
						.find('input').attr('checked', false);
				});
				return false;
			});

			// 如果是搜索，需要将页码重置为第1页
			$('input[type="submit"]').click(function(){
				$(this).parents('form').find('input[name="page"]').each(function(){$(this).val(1);});
			});
		});
		{/literal}
	//-->
	</script>
